﻿@model SAB.Domain.User.UserAccount
@{
    ViewBag.Title = "Iniciar Sesión";
}

<h2>@ViewBag.Title.</h2>
<div class="row">
    <div class="col-md-8">
        @if (TempData["message"] != null)
        {    <div class="alert alert-danger" role="alert">@TempData["message"]</div>}

        @using (Html.BeginForm("ProfileLogin", "Account"))
{
            @Html.Hidden("ReturnUrl",(object) ViewBag.ReturnUrl);
            <div class="form-group">
                <div class="row">
                    <div class="col-md-8">
                        <a href="@Url.Content("~/Account/ForgetPassword")">¿Olvido su contraseña?</a>
                    </div>
                </div>
            </div>
            <div class="col-sm-12" style="height:30px;"></div>
            <div class="form-group">
                <div class="col-md-8">
                    <label for="exampleInputEmail1">Usuario</label>
                </div>
                <div class="col-md-8">
                    @Html.TextBoxFor( m=>m.Username, new { @class = "form-control" })

                </div>
            </div>
            <div class="form-group">
                <div class="col-md-8">
                    <label for="exampleInputEmail1">Contraseña</label>
                </div>
                <div class="col-md-8">
                    @Html.PasswordFor( m=>m.Password, new { @class = "form-control" })

                </div>
            </div>
             
            <div class="col-sm-12" style="height:30px;"></div>
            <div class="form-group">
                <div class="col-md-4">
                    <button type="submit" class="btn btn-primary">
                        Iniciar Sesión
                    </button>


                </div>


            </div>
           
        }

    </div>
</div>
